﻿@{
    ViewBag.Title = "AllAlbum";
    Layout = "~/Views/Shared/_LayoutPublic.cshtml";
    List<ListenMusic.Album_ServiceReference.AlbumSinger> lst_albumsinger = ViewBag.allAlbum;
}
<link href="../../Styles/SongDetails.css" rel="stylesheet" type="text/css" />

<div id="album">
   <h3 class="title-album">ALBUM THỂ LOẠI @lst_albumsinger[0].CategoryName.ToUpper() <hr /></h3>
   <table class="album-content">    
        @foreach (ListenMusic.Album_ServiceReference.AlbumSinger als in lst_albumsinger)
        {
            <tr class="album-details">
                <td class="picture-album">
                    <a href="/listen/listenalbumpage?albumid=@als.AlbumID"><img src="../../Images/albums/@als.Picture" alt="" title="@als.AlbumName" width="130px" height="130px" /></a>
                </td>   
                <td class="album-name">
                    <a href="/listen/listenalbumpage?albumid=@als.AlbumID">@als.AlbumName</a> <br />
                    <span class="sub-detail">
                        Trình bày: <a class="singer" href="/song/searchsong_bysinger?singerid=@als.SingerID">@als.SingerName</a> <br />                   
                        Năm phát hành: @als.ReleaseYear <br />                    
                        Lượt nghe: @als.CountView
                    </span>
                </td>
            </tr>         
        }
    </table>
    <div class="page_number">
        Trang:
        @for (int i = 1; i <= ViewBag.totalAlbum; i++)
        { 
            <a href="/album/getAllAlbum?pageindex=@i&categoryid=@lst_albumsinger[0].CategoryID">@i</a>
        }
    </div>
</div>